﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
<script type="text/javascript">
    var j;
    (function() {
        j = function() {
            alert("haha");
            this.t = function() { alert(this.prototype); alert("t"); };
            return this;

        };
    })();
    
    function extend(destination, source) {
        for (var property in source) {
            destination[property] = (function() { return function() { source[property](arguments.slice(0)); return this; }; })();
        }
    }

    extend(j, { n: function(t) { debugger; alert(t); } });
    // Function.prototype.
    j.n().n(1).n(2);
</script>
</body>
</html>
